package parabullgame;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Tyler
 */
public abstract class Entity
{
    double xpos;
    double ypos;
    double angle;
    
    /**
     * Returns the position of the entity.
     * @return 
     */
    public double [] getPos(){
        double [] returnArray = {this.xpos,this.ypos};
        return returnArray;
    }
    
    /**
     * Sets the position of the entity (two doubles).
     * @param x
     * @param y 
     */
    public void setPos(double x,double y){
        this.xpos = x;
        this.ypos = y;
    }
    
    /**
     * Sets the position of the entity (2 component array, 0 is x, 1 is y)
     * @param inarray 
     */
    public void setPos(double [] inarray){
        this.xpos = inarray[0];
        this.ypos = inarray[1];
    }
    
    /**
     * Sets the angle of the entity.
     * @param a 
     */
    public void setAngle(double a){
        this.angle = a;
    }
    
    /**
     * Returns the angle of the entity
     * @return 
     */
    double getAngle(){
        return this.angle;
    }

    abstract void draw();
    
}
